<?php
/**
 * User:chendenan
 * Created On 2022/3/11 0011 22:39
 */

namespace app\api\controller;
use app\BaseController;
use app\common\business\Mail as MailBus;
class Mail extends BaseController {
    public function code(){
        $email = input("param.email",'',"trim");
        //调用business层的数据
        if(MailBus::send($email,4)){
            return show("发送验证码成功",config("status.success"));
        }
        return show("发送验证码失败",config("status.error"));
    }
}